package com.epam.mycollections.interfaces;

import java.util.Iterator;

/**
 * Interface for sets
 *
 * @author Iurii Miedviediev
 * @version 1.0 Build 04.08.2014
 */
public interface MySet<E> {
    void clear();
    boolean isEmpty();
    void add(E element);
    void addAll(E[] elements);
    E delete(E element);
    boolean contains(E element);
    int size();
    Iterator<E> iterator();
    Object[] toArray();
}
